package com.dayuanit.pay.bank.domain;

/**
 * 新浪返回参数
 * @author Administrator
 *
 */
public class SinaPayResponse {
	
	private String merchantAcctId;
	private static final String version = "v2.3";
	private static final String language = "1";
	private static final String signType = "1";
	private String orderId;
	private String orderTime;
	private String orderAmount;
	private String dealId;
	private String dealTime;
	private String payAmount;
	private String fee;
	private String signMsg;
	private String payResult;
	
	private SinaPayResponse() {
		
	}
	
	public static SinaPayResponse instance() {
		return new SinaPayResponse();
	}
	
	public String createOrigin(String key) {
		StringBuffer origin = new StringBuffer();
		origin.append("merchantAcctId=").append(this.merchantAcctId).append("&")
				.append("version=").append(this.version).append("&")
				.append("language=").append(this.language).append("&")
				.append("signType=").append(this.signType).append("&")
				.append("orderId=").append(this.orderId).append("&")
				.append("orderTime=").append(this.orderTime).append("&")
				.append("orderAmount=").append(this.orderAmount).append("&")
				.append("dealId=").append(this.dealId).append("&")
				.append("dealTime=").append(this.dealTime).append("&")
				.append("payAmount=").append(this.payAmount).append("&")
				.append("fee=").append(this.fee).append("&")
				.append("payResult=").append(this.payResult)
				.append("key=").append(key);
		
		return origin.toString();
	}
	public String getMerchantAcctId() {
		return merchantAcctId;
	}
	public SinaPayResponse setMerchantAcctId(String merchantAcctId) {
		this.merchantAcctId = merchantAcctId;
		return this;
	}
	public String getOrderId() {
		return orderId;
	}
	public SinaPayResponse setOrderId(String orderId) {
		this.orderId = orderId;
		return this;
	}
	public String getOrderTime() {
		return orderTime;
	}
	public SinaPayResponse setOrderTime(String orderTime) {
		this.orderTime = orderTime;
		return this;
	}
	public String getOrderAmount() {
		return orderAmount;
	}
	public SinaPayResponse setOrderAmount(String orderAmount) {
		this.orderAmount = orderAmount;
		return this;
	}
	public String getDealId() {
		return dealId;
	}
	public SinaPayResponse setDealId(String dealId) {
		this.dealId = dealId;
		return this;
	}
	public String getDealTime() {
		return dealTime;
	}
	public SinaPayResponse setDealTime(String dealTime) {
		this.dealTime = dealTime;
		return this;
	}
	public String getPayAmount() {
		return payAmount;
	}
	public SinaPayResponse setPayAmount(String payAmount) {
		this.payAmount = payAmount;
		return this;
	}
	public String getFee() {
		return fee;
	}
	public SinaPayResponse setFee(String fee) {
		this.fee = fee;
		return this;
	}
	public String getSignMsg() {
		return signMsg;
	}
	public void setSignMsg(String signMsg) {
		this.signMsg = signMsg;
	}
	public static String getVersion() {
		return version;
	}
	public static String getLanguage() {
		return language;
	}
	public static String getSigntype() {
		return signType;
	}
	
	public String getPayResult() {
		return payResult;
	}

	public SinaPayResponse setPayResult(String payResult) {
		this.payResult = payResult;
		return this;
	}
	
}
